import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';

@Entity('menus')
export class menus {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  parent_title: string;
  
  @Column()
  parent_id: number;

  @Column({default: null})
  title: string;
  
  @Column({default: null})
  description: string; 
  
  @Column({default: null})
  path: string;
  
  @Column({default: null})
  component: string;

  @Column({default: null})
  icon: string;

  @Column({default: 1})
  permissions: number;
}
